package service.Login;

import dao.Login.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.LoginInformation;
import pojo.User;

import javax.annotation.Resource;
import java.util.Map;

@Service("loginService")
public class LoginServiceImpl implements LoginService{
    @Resource
    private dao.Login.LoginMapper loginMapper;
    @Override
    public User loginUser(LoginInformation loginInformation) {
        return loginMapper.loginUser(loginInformation);
    }

    @Override
    public void registerUser(Map<String,String> map) {
        loginMapper.registerUser(map);
    }

    @Override
    public String getUserpassword(int id) {
        return loginMapper.getUserpassword(id);
    }

    @Override
    public User getbackUser(User user) {
        return loginMapper.getbackUser(user);
    }

    @Override
    public void abandon(int id) {

    }

}
